<?php
/**
 * Groups module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/groupsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         groups
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: form.us.group.php Sat Jul 18 12:47:57 CST 2009
 */

if ( !defined("XOOPS_ROOT_PATH") ) exit;

$form = new XoopsForm("", "form", "create.php", "post",true);

$form->addElement( new XoopsFormText(_GP_FORM_GROUP_NAME, "group_name",24,255,$group_obj->name()));
$form->addElement( new XoopsFormTextArea(_GP_FORM_GROUP_DESC,"group_description",$group_obj->description(),3,36));

$form->addElement(new XoopsFormHidden("ac","create"));
$form->addElement(new XoopsFormHidden("op","group"));
$form->addElement(new XoopsFormHidden("cat_id",$cat_id));
$form->addElement(new XoopsFormHidden("next","3"));
$form->addElement(new XoopsFormButton("","submit",_SUBMIT,"submit"));
$form->assign($xoopsTpl);